from numpy import *

#b = loadtxt('Gauss_32.txt')


file = open('Gauss_16.txt', 'r')
b = eval(file.read())
file.readline()
file.close()
a = b[::-1]
print b
print a

'''
file = open('sin.txt', 'r')
b = eval(file.read())
print b(3.14)
'''